extends "../../azurlane_ctrl/AzurItem.gd"
func init():
	.init()
	name = "[普通]防鱼雷隔仓"
	att.maxHp = 500
	att.def = 25
	att.reHp = 0.35
	info = "受到的雷击伤害降低35%\n[color=#DC143C]同时装备三件时可升级[/color]"
func _connect():
	._connect()
	masCha.connect("onHurt",self,"run")
var p = 0.65
func run(atkInfo):
	if atkInfo.atkType == sys.AtkType.TORPEDO:
		atkInfo.hurtVal *= p
	
func upgrade():
	name = "[color=#FFFF00][史诗]防鱼雷隔仓"

	att.maxHp = 1000
	att.def = 45
	att.reHp = 0.5
	p = 0.5

	info = "受到的雷击伤害降低50%"